<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/12/30
  Time: 9:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"></c:set>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>主页</title>
    <!--jquery核心包-->
    <script type="text/javascript" src="${ctx}/js/jquery.min.js" ></script>
    <!--easyui-->
    <script type="text/javascript" src="${ctx}/js/jquery.easyui.min.js" ></script>
    <script type="text/javascript" src="${ctx}/js/extJquery.js" ></script>
    <script type="text/javascript" src="${ctx}/js/extEasyUI.js" ></script>
    <script type="text/javascript" src="${ctx}/js/easyui-lang-zh_CN.js" ></script>

    <!--easyui样式引入-->
    <link rel="stylesheet" href="${ctx}/css/themes/default/easyui.css" />
    <link rel="stylesheet" href="${ctx}/css/themes/icon.css" />
    <link rel="stylesheet" href="${ctx}/css/style.css" />
</head>
<body>
<script>
    function  loginOut() {
        if(confirm("真的要退出系统?")){
            $.ajax({
                type:'get',
                url:'${ctx}/uc/loginOut',
                dataType:'json',
                success:function(result){
                    window.location.href = "/login.jsp";
                }
            })
        }
    }
</script>
<div id="cc" class="easyui-layout" data-options="fit:true">
    <div data-options="region:'north',split:false"
         style="height:98px;background: url(${ctx}/img/topbg.gif) repeat-x;">
        <div style="float:left;">
            <img src="${ctx}/img/loginlogo.png" style="margin: 10px"/>
        </div>
        <div style="float: right;margin-right: 100px;margin-top: 20px;">
            <span style="color:#fff;font-size: 15px">
                欢迎:<font style="color:#fff;font-size: 18px">${user.userName}(${user.roleName})</font>登录
                <a href="#" style="color:red;font-size: 15px" onclick="loginOut()">安全退出</a>
            </span>
        </div>
    </div>

    <div data-options="region:'south',split:false"
         style="height:30px;background: url(${ctx}/img/topbg.gif) repeat-x;">
        <center>
            <span style="color: white;font-size: 14px;margin-top: 3px;">hqj.com&copy;2020-2021</span>
        </center>
    </div>

    <div data-options="region:'west',title:'系统菜单',split:true,href:'${ctx}/ic/left'"
         style="width:280px;">
        left
    </div>

    <div data-options="region:'center',title:'数据区域',href:'${ctx}/ic/center'"
         style="padding:0px;background:#eee;">
        center
    </div>
</div>

</body>
</html>

